package com.ly.web;

import com.ly.rule.LyRequest;
import com.ly.rule.LyResponse;
import com.ly.rule.LyServlet;

import java.util.List;

/**
 * @author liuyang
 */
public class MaChuServlet implements LyServlet {
    @Override
    public void doGet(LyRequest lyRequest, LyResponse lyResponse) throws Exception {
        List<String> name = lyRequest.getParameters("name");
        lyResponse.write(name.get(0));
    }

    @Override
    public void doPost(LyRequest lyRequest, LyResponse lyResponse) throws Exception {
        this.doGet(lyRequest, lyResponse);
    }
}
